package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName GetGoodsListBean
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/9/17 18:20
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取鲁班商品列表的返回参数")
public class GetGoodsListBean {
    /**
     * message : OK
     * code : 0
     * data : {"list":[{"creative_reject":[{"creative_id":1234,"reject_data":[{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]},{"creative_id":5678,"reject_data":[{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]}],"material_reject":[],"ad_reject":{"ad_id":1234,"reject_data":[]}},{"creative_reject":[],"material_reject":[],"ad_reject":{"ad_id":5678,"reject_data":[{"reject_item":"计划","reject_reason":"1. 您好，请添加风险提示语：\u201c具体金额以活动规则为准\u201d。 "}]}}]}
     * request_id : 2019081518283512700000100113146
     */

    private String message;
    private int code;
    private DataBean data;
    private String request_id;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "获取鲁班商品列表的返回参数实体")
    public static class DataBean {
        @ApiModelProperty(value = "集合数据")
        private List<ListBean> list;

        private PageInfoBean page_info;

        @NoArgsConstructor
        @Data
        public static class PageInfoBean {
            /**
             * total_number : 1
             * page : 1
             * page_size : 1
             * total_page : 1
             */

            private int total_number;
            private int page;
            private int page_size;
            private int total_page;
        }


        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取鲁班商品列表的返回参数集合")
        public static class ListBean {
            @ApiModelProperty(value = "商品编号")
            private String product_id;
            @ApiModelProperty(value = "商品名称")
            private String product_name;
            @ApiModelProperty(value = "支付方式，详见附录【商品支付方式】")
            private String pay_type;
            @ApiModelProperty(value = "业务类型,详见附录【商品业务类型】")
            private String biz_type;
            @ApiModelProperty(value = "创建时间")
            private String create_time;
            @ApiModelProperty(value = "审核状态，详见附录【商品审核状态】")
            private String check_status;
            @ApiModelProperty(value = "上下架状态,详见附录【商品上下架状态】")
            private String status;
            @ApiModelProperty(value = "剩余库存数目")
            private Long stock;
            @ApiModelProperty(value = "销量")
            private Long sell_num;
            @ApiModelProperty(value = "推广链接")
            private String url;

        }
    }
}
